package org.easymodelers.modeler.data;

public abstract class ModelerUtils {

	public static String getBindingClassName(String binding) {
		int lastIndex = binding.lastIndexOf(".");
		if (lastIndex!=-1) {
			return binding.substring(0, lastIndex);
		} else {
			return binding;
		}
	}

	public static String getBindingAttributeName(String binding) {
		int lastIndex = binding.lastIndexOf(".");
		if (lastIndex!=-1) {
			return binding.substring(lastIndex+1);
		} else {
			return binding;
		}
	}
}
